import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import {request,getRequest,postRequest,putRequest,deleteRequest} from "./utils/api";
import router from "./router/router";
import store from "./vuex/vuex";

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueRouter)

Vue.prototype.$request = request
Vue.prototype.$getRequest = getRequest
Vue.prototype.$postRequest = postRequest
Vue.prototype.$putRequest = putRequest
Vue.prototype.$deleteRequest = deleteRequest
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
